<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="dist/vue.js"></script>
</head>
<body>
    <div id="app">
        <ul>
            <li v-for="item in list">{{item}}</li>
        </ul>
        <ul>
            <li v-for="item in list" :key="item">{{item}}</li>
        </ul>
        <ul>
            <li v-for="(item,index) in list" :key="index">{{item}}</li>
        </ul>
        <ul>
            <!-- <template v-for="(item,index) of list" :key="index"> -->
            <template v-for="(item,index) of list">    
                <li>{{item}}</li>
            </template>
        </ul>
        <ul>
            <li v-for="value of obj">{{value}} </li>
        </ul>
        <ul>
            <li v-for="(value,key) in obj">{{value}} {{key}} </li>
        </ul>
        <ul>
            <li v-for="(value,key,index) of obj">{{value}} {{key}} {{index}}</li>
        </ul>
        <ul>
            <li>
                <ul v-for="item in objArr" :key="item">
                    <li v-for="(value,key,index) of item">
                        {{value}} {{key}} {{index}}
                    </li>
                </li>
            </li>
        </ul>
    </div>
</body>
<script>
    const vm = new Vue({
        el: '#app',
        data: {
            list: [
                'aa','bb','cc','dd'
            ],
            obj: {
                name: 'lmx',
                age: 18,
                sex: 1
            },
            objArr: [
                {
                    name: 'cyj',
                    age: 24,
                    sex: 0
                },
                {
                    name: 'gmq',
                    age: 25,
                    sex: 0
                }
            ]
        }
    });
</script>
</html>